local M = {}

function M.createTriangle()
	local gTri = display.newGroup()

	local triangleWidth = 7

	local rect = display.newRect(0, 0, 16, 16)
	gTri:insert(rect)
	rect.alpha = 0.1

	--rect:addEventListener("touch", function() return true end)
	--rect:addEventListener("tap", function() return true end)

	local triangle = display.newPolygon(0, 0, {0, 0, triangleWidth*2, 0, triangleWidth, triangleWidth} )
	gTri:insert(triangle)
	triangle:setFillColor(unpack(colorCfg[6]))

	gTri.uData = {
		isExpand = false
	}

	function gTri:setData(key, value)
		gTri.uData[key] = value
	end

	function gTri:getData(key)
		return gTri.uData[key]
	end

	gTri.rotation = -90

	gTri:addEventListener("mouse", function() return true end)

	return gTri
end

return M